    Page
    {% if page.has_previous %}
        <span class="page-item"><a href="{{page.url}}1">[1]</a></span>
        {% if page.bar.has_more_before %}
            <span class="page-item">...</span>
        {% endif %}
        {% for num in page.bar.before %}
            <span class="page-item"><a href="{{page.url}}{{num}}">[{{num}}]</a></span>
        {% endfor %}
    {% endif %}
    <span class="page-item">{{page.current_page}}</span>
    {% if page.has_next %}
        {% for num in page.bar.after %}
            <span class="page-item"><a href="{{page.url}}{{num}}">[{{num}}]</a></span>
        {% endfor %}
        {% if page.bar.has_more_after %}
            <span class="page-item">...</span>
        {% endif %}
        <span class="page-item"><a href="{{page.url}}{{page.paginator.num_pages}}">[{{page.paginator.num_pages}}]</a></span>   
    {% endif %}
    . Totally {{page.paginator.count}} records